package com.tao.lab

import android.app.Application
import android.content.Context
import android.util.Log
import com.alibaba.android.arouter.launcher.ARouter
import com.github.moduth.blockcanary.BlockCanary
import com.github.moduth.blockcanary.BlockCanaryContext
import com.github.moduth.blockcanary.internal.BlockInfo
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

private const val TAG = "TaoApplication"
class TaoApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        if (true) {
            ARouter.openLog();     // Print log
            ARouter.openDebug();
        }
        ARouter.init(this);

        BlockCanary.install(this,  AppBlockCanaryContext()).start()
    }

}
